//
//  TWUploadImage.h
//  PickerController
//
//  Created by 谭谭伟 on 17/3/2.
//  Copyright © 2017年 谭谭伟. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
//定义成宏调用单例

//声明代理方法
@protocol TW_uploadImageDelegate <NSObject>

@optional

#pragma mark -获取手机图片
- (void)uploadImageDealWith:(UIImage *)image;

@end

@interface TWUploadImage : NSObject<UINavigationControllerDelegate, UIImagePickerControllerDelegate>
/* 代理属性 */
@property (weak, nonatomic) id<TW_uploadImageDelegate> uploadDelegate;

/* 需要在此控制器上操作 */
@property (strong, nonatomic) UIViewController *fatherViewController;

/* 单例 */
+ (TWUploadImage *)shareUploadImage;

- (void)showAlertControllerInFatherViewController:(UIViewController *)fatherViewController delegate:(id<TW_uploadImageDelegate>)delegate;
@end
